package com.example.appointment.dto;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class PostDTO {
    private Long id;
    private String title;
    private String content;
    private Long authorId;
    private String authorName;
    private Long categoryId;
    private String categoryName;
    private Integer likes;
    private Integer views;
    private String tags;
    private boolean favorite;  // 当前用户是否已收藏
    private long favoriteCount; // 收藏数
    private int commentCount;   // 评论数
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private List<CommentDTO> recentComments; // 最近评论
} 